<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" default-lazy="true" >
	<class name="VTMS.Model.Entities.Register,VTMS.Model.Entities" table="register" lazy="true">

		<!-- Primary Key(s) -->
		<id name="Serial" column="serial" type="String">
			<generator class="assigned"/>
		</id>
		
		<!-- Properties -->
		<property column="category" type="String" name="Category" length="50" />
		<property column="license" type="String" name="License" length="50" />
		<property column="apply" type="String" name="Apply" length="50" />
		<property column="revokereason" type="String" name="Revoke" length="50" />
		<property column="brand" type="String" name="Brand" length="50" />
		<property column="vin" type="String" name="Vin" length="50" />
		<property column="obtain" type="String" name="Obtain" length="50" />
		<property column="purpose" type="String" name="Purpose" length="50" />
		<property column="ownerName" type="String" name="OwnerName" length="50" />
		<property column="ownerAddress" type="String" name="OwnerAddress" length="50" />
		<property column="ownerPostcode" type="String" name="OwnerPostcode" length="50" />
		<property column="ownerPhone" type="String" name="OwnerPhone" length="50" />
		<property column="ownerEmail" type="String" name="OwnerEmail" length="50" />
		<property column="ownerMobile" type="String" name="OwnerMobile" length="50" />
		<property column="province" type="String" name="Province" length="50" />
		<property column="department" type="String" name="Department" length="50" />
		<property column="agentName" type="String" name="AgentName" length="50" />
		<property column="agentAddress" type="String" name="AgentAddress" length="50" />
		<property column="agentPostcode" type="String" name="AgentPostcode" length="50" />
		<property column="agentPhone" type="String" name="AgentPhone" length="50" />
		<property column="agentEmail" type="String" name="AgentEmail" length="50" />
		<property column="handlerName" type="String" name="HandlerName" length="50" />
		<property column="handlerPhone" type="String" name="HandlerPhone" length="50" />
		<property column="saver" type="String" name="Saver" not-null="true" length="15" />
		<property column="save_date" type="DateTime" name="SaveDate" not-null="true" />
		<property column="printer" type="String" name="Printer" length="10" />
		<property column="print_date" type="DateTime" name="PrintDate" />
		
	</class>
</hibernate-mapping>
